package com.yanqu.road.server.cmd.activity.seacraftsouthsea;

import com.yanqu.road.entity.activity.ActivityInfo;
import com.yanqu.road.entity.activity.ActivityRewardResult;
import com.yanqu.road.entity.enums.eGamePlayerEventType;
import com.yanqu.road.logic.bussiness.servercenter.ActivityBussiness;
import com.yanqu.road.pb.activity.AutoSendRewardProto;
import com.yanqu.road.pb.activity.SeacraftSouthSeaProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.ActivityModule;
import com.yanqu.road.server.manger.activity.auto.send.AutoSendActivity;
import com.yanqu.road.server.manger.activity.auto.send.AutoSendActivityFactory;
import com.yanqu.road.server.manger.activity.auto.send.BaseAutoSendActivity;
import com.yanqu.road.server.manger.activity.auto.send.SeacraftSouthSeaActivityAutoSend;
import com.yanqu.road.server.manger.activity.seacraft.SeacraftSouthSeaMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.ClientProtocol;
import com.yanqu.road.server.protocol.GameProtocol;
import io.netty.channel.ChannelHandlerContext;

import java.util.List;

/**
 * @Description
 * @Author cwq
 * @Data 2022/1/20 15:28
 */
@Cmd(code = GameProtocol.S_SEACRAFT_SOUTH_SEA_AUTO_SEND_RANK_FROM_CROSS, desc = "海上争霸 南海丝路 自动发奖 跨服返回区服 协议")
public class SeacraftSouthSeaAutoSendRankFromCrossCmd implements Command {
    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage packet) throws Exception {
        AutoSendRewardProto.CrossUnionRankWithUnionInfoMsg builder = AutoSendRewardProto.CrossUnionRankWithUnionInfoMsg.parseFrom(packet.getBytes());
        AutoSendActivity.sendSeacraftSouthSeaUnionRankReward(builder);
    }
}
